package com.tanhua.manager;

import com.tanhua.service.SummaryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.text.ParseException;

@RestController
public class SummaryController {
    @Autowired
    private SummaryService summaryService;
    //查询概要统计信息
    @GetMapping("/dashboard/summary")
    public ResponseEntity dashboardSummary() throws ParseException {
       return  summaryService.findSummary();
    }
}
